WriteRegistryEntry

Sets a registry key value on the test computer. For example, if an application writes to the registry after an action is performed, you can use this statement to reset the registry entries each time the script runs.

Only use this statement if you have experience editing the registry.

Note: Issues may occur when using this statement in load test scripts.

Syntax

WriteRegistryEntry("FullKeyName", "ValueName", Value)

Arguments

Argument Description
FullKeyName Full path to the registry key starting with a valid root, such as HKEY_CURRENT_USER.
ValueName Name/value name pair to write to the registry.
Value Value to write to the registry key.

Example

WriteRegistryEntry("HKEY_CURRENT_USER\\Software\\WysiCorp", "Name", "Developer Name")